home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Enhancements / DEPlay / Module-Install < prev   
Encoding:
Text File  |  1997-11-24  |  6.1 KB  |  201 lines

  1. ; DEPlay - install script
  2. ;
  3.  
  4.  
  5. (if (= @language "deutsch")
  6.     (
  7.         (set #welcome      "Willkommen bei der Installation des DEPlay-Moduls !")
  8.         (set #wronginst    "Leider ist mindestens der Installer V42.9 nötig")
  9.         (set #wrongkick    "Leider brauchst Du mindestens Kick/WB 2.x und eine 68020 CPU")
  10.         (set #askdeli      "Zeige mir jetzt unbedingt den DeliTracker !" )
  11.         (set #delihelp     "Du musst den Pfad zum DeliTracker wählen und ihn anklicken.\nBreche jetzt ab, wenn Du ihn umbenannt hast, benenne ihn wieder zurück und starte das Install-Script erneut.")
  12.         (set #filetype     "Möchtest Du ein paar Dateitypen installieren ?")
  13.         (set #filetypehelp "Du brauchst sie nicht unbedingt. Sie sind wie z.B. \"Module-PS3M\" benannt.")
  14.         (set #button       "Möchtest Du die Beispiel-Knöpfe installieren ?")
  15.         (set #buttonhelp   "Nötig sind sie nicht, aber eben gut als Beispiel.\nDu musst sie später von Hand in DOpus laden (sie heissen \"DEPlay-example\").\n")
  16.         (set #ownconfig    "Möchtest Du eine eigene Config für den DeliTracker verwenden ?")
  17.         (set #which        "Welche DeliTracker Config soll verwendet werden ?")
  18.         (set #module       "Kopiere DEPlay-Modul")
  19.         (set #settings     "Kopiere Config")
  20.         (set #genie        "Kopiere NotifiyGenie")
  21.         (set #types        "Kopiere DateiTypen")
  22.         (set #butt         "Kopiere Knöpfe")
  23.         (set #doc          "Kopiere Anleitung")
  24.         (set #catalog      "Kopiere Katalog")
  25.         (set #success      "Das DeliPlay-Modul wurde erfolgreich nach \"DOpus5:\" installiert. Viel Spass !")
  26.     )
  27.     (
  28.         (set #welcome      "Welcome to the installation of the DEPlay module !")
  29.         (set #wronginst    "Sorry, you need the Installer V43 to go on")
  30.         (set #wrongkick    "Sorry, but you need at least Kick/WB 2.x and a 68020 CPU")
  31.         (set #askdeli      "Show me the DeliTracker file. You must do this !!")
  32.         (set #delihelp     "You should click at least on the file \"DeliTracker2\".\nYou must abort, if you have renamed the Delitracker.")
  33.         (set #button       "Do you want to copy the DEPlay example buttons ?")
  34.         (set #buttonhelp   "May be useful to have an example.\nYou must load them later manually (named \"DEPlay-example\").\n")
  35.         (set #filetype     "Do you wish to install some module filetypes ?" )
  36.         (set #filetypehelp "You need them not to use the DeliModule. They are named like \"Module-PS3M\".")
  37.         (set #module       "Copy DEPlay module")
  38.         (set #settings     "Copy settings")
  39.         (set #genie        "Copy NotifyGenie")
  40.         (set #types        "Copy filetypes")
  41.         (set #butt         "Copy buttons")
  42.         (set #doc          "Copy doc")
  43.         (set #catalog      "Copy catalog")
  44.         (set #success      "The DeliPlay.Module is successful installed to \"DOpus5:\" . Enjoy it.")
  45.     )
  46. )
  47.  
  48. ;
  49.  
  50. (if (= @installer-version 0)
  51.     (abort "Sorry, you need the Installer V43 to go on")
  52. )
  53.  
  54. (set cpu (+ (database "cpu")))
  55.  
  56. (if     (OR (< (getversion) 37)
  57.              (< cpu 68020)
  58.         )
  59.         (abort #wrongkick)
  60. )
  61.  
  62. (set @default-dest "DOpus5:")
  63. (set filetypes 0)
  64.  
  65. (welcome #welcome)
  66.  
  67. (set toolname "")
  68. (while (NOT (patmatch (fileonly toolname) "DeliTracker2") )
  69.  
  70.        (set toolname
  71.             (askfile
  72.                  (prompt #askdeli)
  73.                  (default "")
  74.                  (help #delihelp "\n\n" @askfile-help )
  75.             )
  76.        )
  77. )
  78.  
  79.  
  80. (if @user-level
  81.     (    (set filetypes
  82.               (askbool
  83.                    (prompt #filetype)
  84.                    (help #filetypehelp)
  85.               )
  86.          )
  87.          (set button
  88.               (askbool
  89.                    (prompt #button)
  90.                    (help #buttonhelp)
  91.               )
  92.          )
  93.          (if  (askbool
  94.                    (prompt #ownconfig)
  95.                    (help @askchoice-help)
  96.               )
  97.               (set ownconfig
  98.                    (askfile
  99.                        (prompt #which)
  100.                        (default "")
  101.                        (help @askchoice-help)
  102.                    )
  103.               )
  104.          )
  105.     )
  106.     (    (set filetypes 1)
  107.     )
  108. )
  109.  
  110.  
  111. (copyfiles
  112.        (prompt #module)
  113.        (source "Opus5/modules/")
  114.        (dest "DOpus5:modules/")
  115.        (all)
  116.  
  117. )
  118.  
  119. (textfile
  120.        (prompt #settings)
  121.        (dest "DOpus5:settings/DEPlay.list")
  122.        (include "Opus5/settings/DEPlay.list")
  123.        (append toolname)
  124. )
  125.  
  126. (copyfiles
  127.        (prompt #settings)
  128.        (source "Opus5/settings/DP.cfg")
  129.        (dest "DOpus5:settings/")
  130. )
  131.  
  132. (if ownconfig
  133.        (copyfiles
  134.             (prompt #settings)
  135.             (source ownconfig)
  136.             (dest "DOpus5:settings/")
  137.             (newname "DT.cfg")
  138.        )
  139.        (copyfiles
  140.             (prompt #settings)
  141.             (source "Opus5/settings/DT.cfg")
  142.             (dest "DOpus5:settings/")
  143.        )
  144. )
  145.  
  146. (copyfiles
  147.        (prompt #genie)
  148.        (source "DeliTracker_II/DeliGenies/")
  149.        (dest   (cat (pathonly(toolname)) "DeliGenies/"))
  150.        (all)
  151. )
  152.  
  153. (if filetypes
  154.        (copyfiles
  155.             (prompt #types)
  156.             (source "Opus5/filetypes/")
  157.             (dest "DOpus5:filetypes/")
  158.             (all)
  159.        )
  160. )
  161. (if button
  162.        (copyfiles
  163.             (prompt #butt)
  164.             (source "Opus5/buttons/")
  165.             (dest "DOpus5:buttons/")
  166.             (all)
  167.        )
  168. )
  169.  
  170. (set languagedir (cat "Docs/" @language))
  171. (set catalogdir (cat "Opus5/catalogs/" @language))
  172.  
  173. (if (exists languagedir (noreq))
  174.     (
  175.         (
  176.             (copyfiles
  177.                 (prompt #doc)
  178.                 (source languagedir)
  179.                 (dest "DOpus5:Help/")
  180.                 (pattern "#?.guide#?")
  181.                 (files)
  182.                 (infos)
  183.             )
  184.  
  185.             (if (exists catalogdir (noreq))
  186.                 (
  187.                     (copyfiles
  188.                         (prompt #catalog)
  189.                         (source catalogdir)
  190.                         (dest (cat "DOpus5:catalogs/" @language))
  191.                         (all)
  192.                     )
  193.                 )
  194.             )
  195.         )
  196.     )
  197.     (message "A doc and catalog for your native language is not available. You should copy a doc file of your choice to your DOpus5 docs manually.")
  198. )
  199.  
  200. (exit #success (quiet))
  201.